<?php
error_reporting(E_ALL);
try {
	define("FV_APP", "frontend");
	require_once("../engine_mid/config.inc.php");
	$current_lang = fvRequest::getInstance()->getRequestParameter("lang") ? fvRequest::getInstance()->getRequestParameter("lang") : (fvSite::$fvSession->get("lang") ? fvSite::$fvSession->get("lang") : "rus");
 	fvSite::$fvSession->set("lang", $current_lang);
//  	var_dump(fvSite::$fvSession->get("lang"));
	fvDispatcher::getInstance()->process();
} 
catch (Exception $e) {
	errorHandler($e);
}
?>